class Account::BaseController < ApplicationController

  layout 'account'

  before_filter :require_authorization,
                :find_account_recommended_products

  private
    def require_authorization
      if @account == nil
        redirect_to account_login_path
      end
    end

    def find_account_recommended_products
      if @account != nil
        @recommended_account_products = Statistics.find_recommended_products_for_user(@account, 5)
      end
    end
  

end